<!doctype html>
<html>
<head>
    <title>修改页面</title>
    <style>
    table{
        width:97%;
        border:1px solid #ccc;
    }
    th,td{
        border:1px solid #ccc;
    }
        input,textarea{
            width:600px;
        }
    </style>
</head>
<body>
    <form action="/editPost/{{model.id}}" method="post">
        {% csrf_token %}
        <table>
            <tr>
                <th>标题：</th>
                <td><input name="title" type="text" value="{{model.title}}" /></td>
            </tr>
            <tr>
                <th>内容：</th>
                <td><textarea rows="5" name="content">{{model.content}}</textarea></td>
            </tr>
            <tr>
                <td colspan="2">
                    <button type="submit">提交</button>
                    <a href="/list/">返回</a>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>